package ua.ros.classloaderlab;

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Test {

	public static void main(String[] argv) throws Exception {
		for (;;) {
			ClassLoader loader = new MyClassLoader(new String[] { "." });
			Class clazz = Class.forName("TestModule", true, loader);
			TrueStaticModule module = (TrueStaticModule) clazz.newInstance();
			System.out.println(module);
			new BufferedReader(new InputStreamReader(System.in)).readLine();
		}
	}
}
